package com.glasses.primework;

import java.io.InputStream;
import javax.faces.bean.ManagedBean;
import org.primefaces.model.DefaultStreamedContent;
import org.primefaces.model.StreamedContent;

@ManagedBean
public class GraphicImage {
    private StreamedContent image;
    
    public StreamedContent getImage() {
        return image;
    }
    
    public GraphicImage() {
        InputStream stream = this.getClass().getResourceAsStream("IMG/photo4.jpg");
        image = new DefaultStreamedContent(stream, "image/jpeg");
    }
}
